CMP#.STATES

Description

CMP#.STATES indicates which setpoints, if any, are driving the channel output. It provides a convenient way to read the full state information for the channel without checking the individual CMP#.STATE# for each setpoint.

Examples

Usage

CMP#.STATES is structured as a bitfield, with CMP#.STATE1 occupying bit 0, up to CMP#.STATE8 occupying bit 7.

Code

These commands read the setpoint states of channel 1 and channel 2. In this example, channel 1 setpoints 1 and 3 (bits 0 and 2) are active and channel 2 setpoints 6 and 8 (bits 5 and 7) are active.

--> CMP1.STATES
5
--> CMP2.STATE 7
160

Context

See Compare Engines View.

Versions

Action Version Notes
Implemented 02-06-00-000  

General Information

Type

Read Only

Units

N/A

Range

0 to 255

Default Value

N/A

Data Type

Integer

See Also

CMP#.STATE

Stored in Non-Volatile Memory

No

Variants Supported

All variants are supported.

Industrial Ethernet Information

EtherCAT CoE and CANopen

Command

Index

SubIndex

Data Type

Units

Float Scale

Access

PDO Mappable

CMP1.STATES

4500h

05h

Unsigned16

-

-

Read only

No

CMP2.STATES

4501h

05h

Unsigned16

-

-

Read only

No

EtherNet/IP

ID

Instance

Attribute

Name

Data Type

Access

User Mappable

31420

1

31420 (0x7abc)

CMP1.STATES

Unsigned16

Read Only

Yes

31421

1

31421 (0x7abd)

CMP2.STATES

Unsigned16

Read Only

Yes

PROFINET

Parameter

PNU

Data Type

Access

Units

CMP1.STATES

31420

Unsigned16

Read Only

-

CMP2.STATES

31421

Unsigned16

Read Only

-